//
//  UIImageView+JwExten.h
//  JwPack
//
//  Created by 陈警卫 on 2024-08-21.
//

#import <UIKit/UIKit.h>
#import <SDWebImage/SDWebImage.h>
#import <Masonry/Masonry.h>

NS_ASSUME_NONNULL_BEGIN

/// 站位图类名 (可以自定义 继承JwImageHoldView)
extern NSString *GV_UIImageViewJwExten_holdClassName;

extern NSString *GV_JwImageHoldView_backColorString;
extern NSString *GV_JwImageHoldView_holdImgName;

@interface JwImageHoldView : UIView

@property (nonatomic, strong) UIImageView *holdImgV;

/// 设置数据 (继承者使用)
- (void)setupValue:(id)value;

@end

@interface UIImageView (JwExten)

@property (nonatomic, strong, nullable) JwImageHoldView *jw_imageHoldView;

- (void)jw_sd_setImageWithUrlString:(NSString *)urlString placeImage:(nullable UIImage *)placeImage holdImage:(nullable UIImage *)holdImage completed:(nullable SDExternalCompletionBlock)completed;

- (void)jw_sd_setImageWithUrlString:(NSString *)urlString;

- (void)jw_sd_setImageWithUrlString:(NSString *)urlString holdImage:(UIImage *)holdImage;

- (void)jw_sd_setImageWithUrlString:(NSString *)urlString completed:(SDExternalCompletionBlock)completed;

- (void)jw_sd_setImageWithUrlString:(NSString *)urlString placeImage:(UIImage *)placeImage;

- (void)jw_sd_setImageWithUrlString:(NSString *)urlString value:(id)value completed:(SDExternalCompletionBlock)completed;


@end

NS_ASSUME_NONNULL_END
